package com.woniuxy.entity;


import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@ConfigurationProperties(prefix = "datasource-my")
@Component
public class MyDataSourceEntity {
    String url;
    String username;
    String password;

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public MyDataSourceEntity(String url, String username, String password) {
        this.url = url;
        this.username = username;
        this.password = password;
    }

    public MyDataSourceEntity() {
    }

    @Override
    public String toString() {
        return "MyDataSourceEntity{" +
                "url='" + url + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
